﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <!--Header-->
    <Style x:Key="CustomHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Background" Value="#a40000"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="BorderBrush" Value="#FFF5B66A"/>
    </Style>

    <!--Add Zutat-->
    <DataTemplate x:Key="AddZutat">
        <StackPanel Orientation="Horizontal">
            <TextBlock FontSize="14" Text="{Binding Path= Name}" HorizontalAlignment="Left" Margin="0,0,20,0"/>
            <Button Name="BtnAddZutat" Width="20" Height="15" HorizontalAlignment="Right" >
                <Button.Background>
                    <ImageBrush ImageSource="../../Images/plus.png"/>
                </Button.Background>
            </Button>
        </StackPanel>
    </DataTemplate>

    <!--Remove Zutat-->
    <DataTemplate x:Key="RemoveZutat">
        <StackPanel Orientation="Horizontal">
            <TextBlock FontSize="14" Text="{Binding Path= Name}" HorizontalAlignment="Left" Margin="0,0,20,0"/>
            <Button Name="BtnRemoveZutat" Width="20" Height="14" HorizontalAlignment="Right">
                <Button.Background>
                    <ImageBrush ImageSource="../../Images/minus.png"/>
                </Button.Background>
            </Button>
        </StackPanel>
    </DataTemplate>

    <!--Add Food Lists-->
    <DataTemplate x:Key="AddSmallSize">
        <StackPanel Orientation="Horizontal">
            <TextBlock FontSize="14" Name="smallSize" Text="{Binding Path= Preis_klein, StringFormat=C}" HorizontalAlignment="Left" Margin="0,0,20,0"/>
            <Button Name="BtnAddSmall" Width="20" Height="15" HorizontalAlignment="Right" >
                <Button.Background>
                    <ImageBrush ImageSource="../../Images/plus.png"/>
                </Button.Background>
            </Button>
        </StackPanel>
    </DataTemplate>

    <DataTemplate x:Key="AddBigSize">
        <StackPanel Orientation="Horizontal">
            <TextBlock FontSize="14" Name="bigSize" Text="{Binding Path= Preis_groß, StringFormat=C}" HorizontalAlignment="Left" Margin="0,0,20,0"/>
            <Button Name="BtnAddBig" Width="20" Height="15" HorizontalAlignment="Right">
                <Button.Background>
                    <ImageBrush ImageSource="../../Images/plus.png"/>
                </Button.Background>
            </Button>
        </StackPanel>
    </DataTemplate>

    <!--Extra Zutat Window-->
    <DataTemplate x:Key="AddExtraZutat">
        <StackPanel Orientation="Horizontal">
            <TextBlock FontSize="14" Text="{Binding Path= Preis, StringFormat=C}" HorizontalAlignment="Left" Margin="0,0,20,0"/>
            <Button Name="BtnAddExtraZutat" Width="20" Height="15" HorizontalAlignment="Right">
                <Button.Background>
                    <ImageBrush ImageSource="../../Images/plus.png"/>
                </Button.Background>
            </Button>
        </StackPanel>
    </DataTemplate>

    <DataTemplate x:Key="RemoveExtraZutat">
        <StackPanel Orientation="Horizontal">
            <TextBlock FontSize="14" Text="{Binding Path= Preis, StringFormat=C}" HorizontalAlignment="Left" Margin="0,0,20,0"/>
            <Button Name="BtnRemoveExtraZutat" Width="20" Height="14" HorizontalAlignment="Right">
                <Button.Background>
                    <ImageBrush ImageSource="../../Images/minus.png"/>
                </Button.Background>
            </Button>
        </StackPanel>
    </DataTemplate>

    <!--Remove Food-->
    <DataTemplate x:Key="RemoveFood">
        <StackPanel Orientation="Horizontal">
            <TextBlock FontSize="14" Text="{Binding Path= GesamtPreis, StringFormat=C}" HorizontalAlignment="Left" Margin="0,0,20,0"/>
            <Button Name="BtnRemoveExtraZutat" Width="20" Height="14" HorizontalAlignment="Right">
                <Button.Background>
                    <ImageBrush ImageSource="../../Images/minus.png"/>
                </Button.Background>
            </Button>
        </StackPanel>
    </DataTemplate>

    <!--ItemContainerStyle-->
    <Style x:Key="CustomItemContainerStlye" TargetType="{x:Type ListViewItem}">
        <Setter Property="FontSize" Value="14" />
        <Setter Property="Foreground" Value="White" />
        <Style.Triggers>
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="BorderBrush" Value="Transparent" />
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="BorderBrush" Value="Transparent" />
            </Trigger>
        </Style.Triggers>
    </Style>
    
    <!--Button-->
    <Style x:Key="CustomButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="Height" Value="25"/>
        <Setter Property="Width" Value="130"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="FontSize" Value="14"/>
        <!--<Setter Property="BorderBrush" Value="#FFF5B66A"/>-->
        <Setter Property="Template">
  <Setter.Value>
    <ControlTemplate TargetType="{x:Type Button}">
      <Border 
        x:Name="Border"  
        Background="Transparent"
          BorderThickness="1"
        BorderBrush="#FFF5B66A">
        <ContentPresenter 
          Margin="2"
          HorizontalAlignment="Center"
          VerticalAlignment="Center"
          RecognizesAccessKey="True"/>
      </Border>
      <ControlTemplate.Triggers>
        <Trigger Property="IsKeyboardFocused" Value="true">
                            <Setter TargetName="Border" Property="BorderBrush" Value="#FFF5B66A" />
        </Trigger>
        <Trigger Property="IsDefaulted" Value="true">
          <Setter TargetName="Border" Property="BorderBrush" Value="#202020" />
        </Trigger>
        <Trigger Property="IsMouseOver" Value="true">
          <Setter TargetName="Border" Property="Background" Value="#808080" />
        </Trigger>
        <Trigger Property="IsPressed" Value="true">
          <Setter TargetName="Border" Property="Background" Value="#E0E0E0" />
          <Setter TargetName="Border" Property="BorderBrush" Value="#606060" />
        </Trigger>
        <Trigger Property="IsEnabled" Value="false">
          <Setter TargetName="Border" Property="Background" Value="#EEEEEE" />
          <Setter TargetName="Border" Property="BorderBrush" Value="#AAAAAA" />
          <Setter Property="Foreground" Value="#888888"/>
        </Trigger>
      </ControlTemplate.Triggers>
    </ControlTemplate>
  </Setter.Value>
</Setter>
    </Style>
    
    <!--Textbox-->
    <Style x:Key="CustomTextBoxStyle" TargetType="{x:Type TextBox}">
        <Setter Property="Height" Value="25"/>
        <Setter Property="Width" Value="130"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="FontSize" Value="14"/>
        <Setter Property="BorderBrush" Value="#FFF5B66A"/>
    </Style>

    <Style x:Key="CustomTextBlockStyle" TargetType="{x:Type TextBlock}">
        <Setter Property="Height" Value="25"/>
        <Setter Property="Width" Value="130"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="FontSize" Value="14"/>
    </Style>

    <!--Label-->
    <Style x:Key="CustomLabelStyle" TargetType="{x:Type Label}">
        <Setter Property="Height" Value="25"/>
        <Setter Property="Width" Value="150"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="FontSize" Value="14"/>
    </Style>
</ResourceDictionary>
